package com.yn.common.request.zyorder;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 服务项配置
 *
 */

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="服务项配置对象", description="服务项配置")
public class ZyServiceConfigRequest implements Serializable {

    private static final long serialVersionUID=1L;
    @ApiModelProperty(value = "主键id (修改时必填)")
    private Integer id;

    @ApiModelProperty(value = "服务类型（1:范围/2:单价）")
    @NotNull(message = "服务类型不能为空")
    private Integer serviceUnionType;

    @ApiModelProperty(value = "服务类型(1:转运/2:普通服务)")
    @NotNull(message = "服务类型不能为空")
    private Integer serviceType;

    @ApiModelProperty(value = "服务名称")
    @NotBlank(message = "服务名称不能为空")
    private String serviceName;

    @ApiModelProperty(value = "单位（km/层）")
    @NotBlank(message = "单位不能为空")
    private String unit;




}
